<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Form</title>
</head>
<body>
    <script>
        window.onload = function(){
            var form = document.createElement('form');
            form.method = 'get';
            form.action = 'https://baidu.com';
            var hidden = document.createElement('input');
            hidden.type = 'text';
            hidden.name = 'key'
            hidden.value = 1;
            form.appendChild(hidden);
            document.body.appendChild(form);
            form.submit();
        }
    </script>
</body>
</html>